package com.swss.g.user.service;

import java.util.List;

import com.swss.g.base.BaseService;
import com.swss.g.user.bean.Module;
import com.swss.g.user.bean.Role;
import com.swss.g.user.bean.RolePopedom;
import com.swss.util.Pagination;

public interface RoleService extends BaseService<Role> {

	@SuppressWarnings("unchecked")
	public List<Module> findAllPopedom(Pagination pagination) throws Exception;

	//更新或删除 角色权限关系
	public void savePopes(List<RolePopedom> RolePopedoms) throws Exception;

	public List<RolePopedom> findRolePopedomByExample(RolePopedom rolePopedom,
			Pagination pagination) throws Exception;

	//更新用户角色关系（增加和删除）
	public void updateRolePopedom(Integer roleId,List<RolePopedom> rolePopedoms) throws Exception;

}
